package com.soft.one;

import com.soft.one.entity.Menu;

import java.util.List;

public class BalanceService {


    public static void balancePrice(){

        List<Menu> menuSelectList = MenuService.getMenuSelectList();

        double total = 0.0;
        for (int i = 0; i < menuSelectList.size() ; i++) {
            total += menuSelectList.get(i).getPrice();
        }
        System.out.println("消费总金额 ："+ total);
    }

}
